package com.entor.model;

public class EduUser extends Comment{
	
	private String loginName;
	private Integer accountId;
	private String password;
	private String type;
	private Integer roleId;
	
	public EduUser() {}

	public EduUser(String loginName, Integer accountId, String password, String type, Integer roleId) {
		super();
		this.loginName = loginName;
		this.accountId = accountId;
		this.password = password;
		this.type = type;
		this.roleId = roleId;
	}

	public String getLoginName() {
		return loginName;
	}

	public void setLoginName(String loginName) {
		this.loginName = loginName;
	}

	public Integer getAccountId() {
		return accountId;
	}

	public void setAccountId(Integer accountId) {
		this.accountId = accountId;
	}

	public String getPassword() {
		if(this.password==null){
			this.password = "202cb962ac59075b964b07152d234b70";
		}
		return password;
	}

	public void setPassword(String password) {
		this.password = password;
	}

	public String getType() {
		return type;
	}

	public void setType(String type) {
		this.type = type;
	}

	public Integer getRoleId() {
		return roleId;
	}

	public void setRoleId(Integer roleId) {
		this.roleId = roleId;
	}

	@Override
	public String toString() {
		return "EduUser [loginName=" + loginName + ", accountId=" + accountId + ", password=" + password + ", type="
				+ type + ", roleId=" + roleId + "]";
	}
	
	

}
